cmake_minimum_required(VERSION 3.10)

if( DEFINED ENV{DM2016_DEV} )
	MESSAGE(STATUS "DM2016_DEV=$ENV{DM2016_DEV}")
else()
	MESSAGE(FATAL_ERROR "请设置环境变量DM2016_DEV")
endif()

include( $ENV{DM2016_DEV}/dm.cmake )

project(dm_plat)

enable_testing()

add_subdirectory(tinyxml)
add_subdirectory(json)
add_subdirectory(string)
add_subdirectory(misc)
add_subdirectory(env)
add_subdirectory(protocol)
add_subdirectory(os)
add_subdirectory(scada)
add_subdirectory(session)